package edu.ucsc.mit2008.swan.editor.core.presentation;

import java.util.ArrayList;
import java.util.List;

import edu.ucsc.mit2008.swan.editor.core.presentation.model.ISwanPresentation;
import edu.ucsc.mit2008.swan.editor.core.presentation.model.SwanPresentation;

public class SwanPresentationFactory {

	private static SwanPresentationFactory instance;

	private List<ISwanPresentation> presentations = new ArrayList<ISwanPresentation>();
	
	private SwanPresentationFactory(){
		
	}
	
	public static SwanPresentationFactory getInstance() {
		if (instance == null)
			instance = new SwanPresentationFactory();
		return instance;
	}	

	public ISwanPresentation createPresentaton(){
		ISwanPresentation presentation = new SwanPresentation();
		return presentation;
	}
	
	public void registerPresentation(ISwanPresentation presentation){
		presentations.add(presentation);
	}
}
